package com.kaili.basic.pojo.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "库存")
@TableName("wms_store_stock")
public class BaseStoreStockEntity {
  @ApiModelProperty("库存id")
  @TableId(type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("订单id")
  private String orderNo;

  @ApiModelProperty("所属仓库id")
  private Long storeId;

  @ApiModelProperty("所属库位id")
  private Long locationId;

  @ApiModelProperty("所属产品id")
  private Long productId;

  @ApiModelProperty("货主id")
  private Long supplierId;

  @ApiModelProperty("库存明细id")
  private Long inStoreDetailId;

  @ApiModelProperty("原始库存数量")
  private Long rawAmount;

  @ApiModelProperty("当前库存数量")
  private Long currAmount;

  @ApiModelProperty("当前重量")
  private Double currWeight;

  @ApiModelProperty("当前体积")
  private Double currVo;

  @ApiModelProperty("当前托盘数")
  private Long currTrays;

  @ApiModelProperty("批次")
  private String batch;

  @ApiModelProperty("过期时间")
  private Date deadTime;

  @ApiModelProperty("创建时间")
  private Date createTime;

  @ApiModelProperty("创建人")
  private Long createBy;
}
